import { get } from '../utils/request';

/**
 * 获取商品列表
 * @returns
 */

export const loadDataAPI = (page=1,category='') => get('/api/v1/products', { page,category });

export const loadDataByIdAPI = (id) => get(`/api/v1/products/${id}`);
